home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 27.zip / BS1 part 27 / Condo.V2.04_d2.adf / HelpFiles / Flow Control  < prev    next >
Text File  |  1993-03-08  |  3KB  |  173 lines

  1. V- Arg1                    |arg1|
  2. V- ArgCount                |argcount|
  3. C- Do                    |do|
  4. C- Else                    |else|
  5. C- ElseIf                |elseif|
  6. C- EndIf                |endif|
  7. C- EndLoop                |endloop|
  8. C- ExitLoop                |exitloop|
  9. C- ExitScript            |exitscript|
  10. C- If                    |if|
  11. C- Loop                    |loop|
  12. C- Quit                    |quit|
  13. C- StopScript            |stopscript|
  14. C- Until                |until|
  15. C- While                |while|
  16. [E]
  17.  
  18. |arg1|
  19. WT {Argument}=Arg1
  20. PL This returns one of the arguments passed
  21. PL to this script.  Up to ten arguments may be
  22. PL passed to a script, Arg1 thru Arg10.
  23. PL
  24. PT SEE ALSO: 
  25. BS ArgCount
  26. PT .
  27. ED
  28.  
  29. |argcount|
  30. WT {Integer}=ArgCount
  31. PL This returns the number of arguments that
  32. PL were passed to this script.  This could be
  33. PL anything from Zero(0) to Ten(10).
  34. PL
  35. PT SEE ALSO: 
  36. BS Arg1
  37. PT .
  38. ED
  39.  
  40. |do|
  41. WT Do {RoutineName} [,{Arg1} [,up to ten arguments]]
  42. PL Performs the routine created using the
  43. PL Routine Object.  The routine can use the
  44. PL optional Arguments as incoming data. See
  45. PL the manual for a full description of this
  46. PL command.
  47. ED
  48.  
  49. |else|
  50. WT Else
  51. PT Used with the 
  52. BS If
  53. PL  command.
  54. ED
  55.  
  56. |elseif|
  57. WT ElseIf {Logical}
  58. PT Used with the 
  59. BS If
  60. PL  command.
  61. PL
  62. PL This allows you to have multiple exclusive
  63. PL true code blocks.
  64. ED
  65.  
  66. |endif|
  67. WT EndIf
  68. PT Used with the 
  69. BS If
  70. PL  command.
  71. ED
  72.  
  73. |endloop|
  74. WT EndLoop
  75. PL Can be used to mark the end of a looping
  76. PL code block.  This end marker will always
  77. PL start the block of code over again.
  78. PT  
  79. BS Loop
  80. PL
  81. PL    ..code..
  82. PL  EndLoop
  83. ED
  84.  
  85. |exitloop|
  86. WT ExitLoop
  87. PL This will abort a loop block and can only
  88. PL be used within a loop block.
  89. PL
  90. PT SEE ALSO: 
  91. BS Loop
  92. PT , 
  93. BS While
  94. PT  and 
  95. BS Until
  96. PT .
  97. ED
  98.  
  99. |exitscript|
  100. WT ExitScript
  101. PL This will abort the current script
  102. PL executing.  If the script was called
  103. PL from another script then that script
  104. PL will take over again.
  105. ED
  106.  
  107. |if|
  108. WT If {Logical}
  109. PL This is used for condition flow control.
  110. PL   If {Logical}
  111. PL     ..code executed if {Logical} is true..
  112. PT   
  113. BS Else
  114. PL
  115. PL     ..code executed if {Logical} is false..
  116. PT   
  117. BS EndIf
  118. ED
  119.  
  120. |loop|
  121. WT Loop
  122. PL Can be used to mark the start of a looping
  123. PL code block.  This allows for repeating
  124. PL blocks of code.
  125. PL  Loop
  126. PL    ..code..
  127. PT  
  128. BS EndLoop
  129. ED
  130.  
  131. |quit|
  132. WT Quit
  133. PL Allows the user to exit the presently
  134. PL running Deck.  If running under CanDo
  135. PL this command will not work. However,
  136. PL it will work if running as a separate
  137. PL application.
  138. ED
  139.  
  140. |stopscript|
  141. WT StopScript
  142. PT Similar to 
  143. BS ExitScript
  144. PL , however, if it is
  145. PL performed from a Routine, execution
  146. PL will not continue in the calling script.
  147. ED
  148.  
  149. |until|
  150. WT Until {Logical}
  151. PL Can be used to mark the end of a looping
  152. PL code block.  This end marker will loopback
  153. PL only if the logical proves false
  154. PT  
  155. BS Loop
  156. PL
  157. PL    ..code..
  158. PL  Until TheLine=Nothing
  159. ED
  160.  
  161. |while|
  162. WT While {Logical}
  163. PL Can be used to mark the start of a looping
  164. PL code block.  This allows for conditional
  165. PL repeating blocks of code.
  166. PL  While Test<>15
  167. PL    ..code..
  168. PT  
  169. BS EndLoop
  170. ED
  171.  
  172.  
  173.